@csrf
<div class="layui-row">
    <div class="layui-form-item">
        <label for="name" class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" class="layui-input" value="{{$procity->name??''}}">
            <input type="hidden" name="types" value="{{$procity->types??''}}">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="english_name" class="layui-form-label">英文名</label>
        <div class="layui-input-block">
            <input type="text" name="english_name" class="layui-input" value="{{$procity->english_name??''}}">
        </div>
    </div>
    @if($procity->types=='2')
    <div class="layui-form-item">
        <label for="parent_id" class="layui-form-label">所属国家</label>
        <div class="layui-input-block">
            <select name="parent_id" id="parent_id" lay-verify="" lay-search>
                @foreach($countries as $country)
                <option value="{{$country->procity_id}}">{{$country->name}}</option>
                @endforeach
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label for="tier" class="layui-form-label">等级</label>
        <div class="layui-input-block">
            <select name="tier" id="tier" lay-verify="" lay-search>
                @foreach($tiers as $tier)
                <option value="{{$tier['id']}}">{{$tier['title']}}</option>
                @endforeach
            </select>
        </div>
    </div>
    @endif
</div>
